package com.itqian.system.form;

import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author shishuqian
 * date 2022/4/11
 * time 16:13
 **/
@Data
public class ReplyForm {

    @NotNull(message = "父评论id不能为空")
    private Integer commentId;

    @NotNull(message = "被评论者id不能为空")
    private Integer toId;

    @NotEmpty
    @Size(max = 32,message = "被评论者昵称最大长度为32")
    private String toName;

    @NotEmpty
    @Size(max = 512)
    private String toAvatar;

    @NotEmpty
    @Size(max = 300,message = "评论最长为300")
    private String content;
}
